<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>永和小票</title>
	</head>
	<style type="text/css">
		*{
			margin: 0px;
			padding: 0px;
			margin-left: 10px;
		}
		body{
			margin: 0px;
			padding: 0px;
		}
		#body{
			height: 1000px;
			width: 350px;
			background-color: darkgrey;
		}
		#between{
			 text-align: center;
		}
		#dashes{
			margin: 0px;
			padding: 0px;
			width: 350px;
			border-top :1px dashed black ;
		}
		.left{
			margin-right: 250px;
		}
		
	</style>
	
	<body>
		<div id="body" >
			<span style="font-weight:100;font-size: 10px;">顾客联</span>
			<h1>请您留意取餐账单号</h1>
			<div id="between">
				自取顾客单
			</div>
			<span id="">
				永和大王
			</span>
			<br>
			<span id="">
				009-0290309
			</span>
			<div id="between">
				--结账单--
			</div>
			<h1>账单号：001112</h1>
			<span id="">
				账单类型：堂食
			</span>
			<br>
			<span id="">
				人数：1
			</span>
			<br>
			<span id="">
				收银员：张静
			</span>
			<br>
			<span id="">
				开单时间：1990-11-21 21:11:11
			</span>
			<br>
			<span id="">
				结账时间：1990-11-21 21:11:11
			</span>
			<div id="dashes">
				
			</div>
		<table border="0px" cellspacing="" cellpadding="">
			<tr><th>数量</th><th width="200px" style="text-align: left;">品类</th><th width="50px">金额</th></tr>
			<tr><td>1</td><td>面包</td><td>1.00</td></tr>
		</table>
		<div id="dashes">
			
		</div>
	<table border="0px" cellspacing="" cellpadding="">
		<tr><td width="250px">合计</td><td>1.00</td></tr>
		<tr><td>微支付</td><td>1.00</td></tr>
	</table>
		<div class="txt">
			
		</div>
		<div id="dashes">
			
		</div>
		<div id="">
			<span id="">打印时间：<span id="time">
					1900-02-22 12:11:11
				</span>
			</span>
		</div>
		<div id="dashes">
			
		</div>
		<br>
		<br>
		<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;根据相关税法规定，电子发票的开票日期同网上申请电子发票的日期，如您需要当日的电子发票请务必在消费当日通过扫描下方二维码，根据指引步骤开具您的增值税电子普通发票。此二维码30天有效，扫描时请保持小票平整。</div>
		<br>
		<img style="background-color: darkgrey;" src="img/123.png" >
		</div>
		<p>官网：www.baidu.com</p>
		<p>加盟热线</p>
	</body>
</html>
<script type="text/javascript">
	var aja;
	if(window.XMLHttpRequest){
		aja=new XMLHttpRequest();
	}
	aja.open("POST","http://127.0.0.1:9001",true);
	aja.send();
	document.getElementsByClassName("txt")[0].innerText=aja.responseText;
</script>
